package com.jic.order.mapper;

import com.jic.order.entity.OrderDeliver;
import com.jic.order.request.OrderDeliverDetailRequest;
import com.jic.order.request.OrderDeliverQueryPage;
import com.jic.order.response.OrderDeliverInfo;
import com.jic.order.rest.response.OrderBaleInfoResponse;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 交货单表
 * @author : yinhaijun
 * @email : 
 * @since : 2020-01-14 10:04:09
 * @version : v1.0.0
 */
@Mapper
public interface  OrderDeliverMapper {

    long insert(OrderDeliver orderDeliver);

    long delete(Long id);

    long update(OrderDeliver orderDeliver);

    OrderDeliver queryByPrimaryKey(Long id);

    List<OrderDeliver> query(OrderDeliver orderDeliver);

    List<OrderDeliverInfo> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("orderDeliver") OrderDeliverQueryPage orderDeliverQueryPage);

    List<OrderDeliverInfo> queryList(@Param("orderDeliver") OrderDeliverQueryPage orderDeliverQueryPage);

    long queryPageCount(@Param("orderDeliver") OrderDeliverQueryPage orderDeliverQueryPage);

    OrderDeliver queryOrderNoByDeliverNo(@Param("request") OrderDeliverDetailRequest request);

    /**
     * description: 根据订单号查询交货单信息
     *
     * @author: jackHe
     * @time: 2020/5/9 11:31
     */
    OrderBaleInfoResponse queryByOrderNo(String orderNo);
}